import request from '@/utils/request'

// 获取楼宇列表
export const getFloorAPI = (params) => request.get('/park/building', { params })

// 楼宇详情查询
export const getFloorDetailAPI = (id) => request.get(`park/building/${id}`)

// 楼宇新增
export const addFlooringAPI = (data) => request.post('/park/building', data)

// 楼宇修改
export const updateFlooringAPI = (data) => request.put('/park/building', data)

// 楼宇删除
export const delFlooringAPI = (id) => request.delete(`/park/building/${id}`)
